package com.wtwd.device.dao;


import com.wtwd.device.model.entity.UpgradeFile;
import com.wtwd.device.model.entity.UpgradeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mjy
 * @date 2021/08/12
 * @description
 */
@Mapper
public interface AppUpgradeMapper {
    UpgradeFile getLatestUpgradeByWatchId(@Param("watchId") String watchId);

    List<UpgradeVo> getDeviceUpgradeListByWatchId(@Param("watchId") String watchId, @Param("language") String language);

    UpgradeFile getUpgradeById(@Param("id") Integer id);

    Integer updateUpgradeFile(UpgradeFile upgradeFile);

    UpgradeFile getUpGradeByWatchIdAndVersion(@Param("watchId") String watchId,@Param("version") String version);
}
